class @AdminResponseRoutes extends Backbone.Router
    
    routes:
        "Responses/Create": "Create"
        "Responses/Edit*path": "Edit"
        "Responses/Listing*path": "Listing"
        "Responses/Index": "Listing"
        "Responses": "Listing"

    Create: ->
        model = new AdminResponseCreateModel()
        view = new AdminResponseCreateView(model: model)
        view.render()

    Edit: ->
        model = new AdminResponseEditModel()
        model.set("ResponseId", Url.GetParameterByName("ResponseId"))
        view = new AdminResponseEditView(model: model)

    Listing: ->
        model = new AdminResponseListingModel()
        model.FillModelFromUrl()
        view = new AdminResponseListingView(model: model)